﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SageKing.Database.EF.Contracts;

/// <summary>
/// 模板实体基类
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="Tt"></typeparam>
public class EntityTemplate<T, Tt> : EntityBase<T>, IEntityTemplate<T, Tt>
{
    public virtual Tt? TemplateId { get; set; }
    /// <summary>
    /// 模板复用->继承模板Id
    /// </summary>
    public virtual Tt? InheritTemplateId { get; set; }

    public virtual string Name { get; set; }

    public virtual int Type { get; set; } = 0;
    public virtual bool? Enable { get; set; } = false;
    /// <summary>
    /// 模板来源地址
    /// </summary>
    public virtual string Url { get; set; }
    public virtual string? Icon { get; set; }

    public virtual string? Description { get; set; }
    public virtual string? Remark { get; set; }
    #region 排序
    public virtual int? SortNo { get; set; } = 0;

    public virtual int? OrderNo { get; set; } = 0;
    #endregion
}
